#!/bin/bash
if [ ! -d cocos2d-x-lib ];
then
        if [ ! -f cache/cocos.zip ];
        then
                echo Downloading cocos.zip
                mkdir cache
                wget http://dl.dropbox.com/u/27771201/cocos.zip -O cache/cocos.zip
        else
                echo "File cocos.zip already exists, skipping download"
        fi
        unzip cache/cocos.zip -d cocos2d-x-lib
else
        echo Dependencies dir already exists. Skipping
fi
